package jschool.homework.connection.pool;

import java.sql.SQLException;

public interface ConnectionPool extends ConnectionEventListener {
	PooledConnection getConnection() throws InterruptedException, SQLException;
	PooledConnection getConnection(long timeout) throws InterruptedException, SQLException;
	void releaseConnection(PooledConnection connection);
	void close();
}
